{{ form(form.getAction() ~ '?tab=permission' , 'class': 'forms-horizontal') }}
<table class="table table-hover dataTable no-footer" align="center">
    <tbody>
    {% for resource in acl.getResources() %}
        <tr>
            <td colspan="6">{{ resource.getName() }}</td>
        </tr>
        {% for action in resource.action %}
            <tr>
                <td width="1%">
                    <input type="checkbox" name="permissions[]" value="{{ resource.getValue() ~ '.' ~ action.getValue() }}"  {% if permissions[resource.getValue() ~ '.' ~ action.getValue()] is defined %} checked="checked" {% endif %}>
                </td>
                <td width="33%">{{ action.getName() }}</td>
            </tr>
        {% endfor %}
    {% endfor %}
    </tbody>
</table>
{{ submit_button('submit ' , 'class' : 'btn btn-primary') }}
{{ end_form() }}